from django.db import models

# Create your models here.


class Fiction(models.Model):
    """
    title, cate, href, author
    """
    title = models.CharField(max_length=80)
    href = models.CharField(max_length=128)
    author = models.CharField(max_length=30)
    cate = models.CharField(max_length=30)

    class Meta:
        db_table = 'fiction'

    def __str__(self):
        return self.title
